﻿namespace Sidvall.FileSystemManager.Data
{
    public class NameItemCollection : System.Collections.ObjectModel.Collection<NameItem>
    {
        public void Add(string oldName, string newName)
        {
            if (string.IsNullOrWhiteSpace(oldName))
                return;
            if (string.IsNullOrWhiteSpace(newName))
                return;
            var item = new NameItem()
            {
                OldName = oldName,
                NewName = newName,
            };
            Add(item);
        }
    }
}
